import React from 'react';
import ReactDOMServer from 'react-dom/server';
import Counter from '../assets/src/pages/index/components/Counter';
import defaults from '../config/defaults';

module.exports = {
    index:function *(next) {
        defaults.body=ReactDOMServer.renderToString(<Counter />);
        yield this.render('index/index', defaults);
      }
};